.shade {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    opacity: 0.3;
    position: fixed;
    z-index: 99;
}

@-webkit-keyframes layer-bounceIn {
    0% {
        opacity: 0;
        -webkit-transform: scale(.5);
        transform: scale(.5)
    }
    100% {
        opacity: 1;
        -webkit-transform: scale(1);
        transform: scale(1)
    }
}

@keyframes layer-bounceIn {
    0% {
        opacity: 0;
        -webkit-transform: scale(.5);
        -ms-transform: scale(.5);
        transform: scale(.5)
    }
    100% {
        opacity: 1;
        -webkit-transform: scale(1);
        -ms-transform: scale(1);
        transform: scale(1)
    }
}

.layer {
    z-index: 19891015;
    position: fixed;
    background-color: #fff;
    border-radius: 4px;
    top: 0px;
    left: 0px;
    right: 0px;
    bottom: 0px;
    // margin: auto;
    box-shadow: 1px 1px 50px rgba(0,0,0,.3);

    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
    -webkit-animation-duration: .3s;
    animation-duration: .3s;
    z-index: 100;
    
}

.fade-in{
    animation-name: layer-bounceIn;
    -webkit-animation-name: layer-bounceIn;
}

@-webkit-keyframes layer-bounceOut {
    100% {
        opacity: 0;
        -webkit-transform: scale(.7);
        transform: scale(.7)
    }
    30% {
        -webkit-transform: scale(1.05);
        transform: scale(1.05)
    }
    0% {
        -webkit-transform: scale(1);
        transform: scale(1)
    }
}

@keyframes layer-bounceOut {
    100% {
        opacity: 0;
        -webkit-transform: scale(.7);
        -ms-transform: scale(.7);
        transform: scale(.7)
    }
    30% {
        -webkit-transform: scale(1.05);
        -ms-transform: scale(1.05);
        transform: scale(1.05)
    }
    0% {
        -webkit-transform: scale(1);
        -ms-transform: scale(1);
        transform: scale(1)
    }
}

.layer-close {
    -webkit-animation-name: layer-bounceOut;
    animation-name: layer-bounceOut;
    -webkit-animation-duration: .2s;
    animation-duration: .2s
}
.layer-title {
    height: 40px;
    background-color: #005496;
    color: #fff;
    line-height: 40px;
    font-size: 14px;
    padding-left: 20px;
    padding-right: 20px;
    border-radius: 4px 4px 0 0;
    cursor: move;
}

.layer-title label {
    float: left;
}

.layer-title i {
    float: right;
    color: #fff;
    line-height: 40px;
    cursor: pointer;
}

.layer-title i:hover {
    color: #f00;
}